package com.ruoyi.lipin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息业务对象 lp_product
 *
 * @author ruoyi
 * @date 2025-03-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LpProductBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long productId;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 主图
     */
    @NotBlank(message = "主图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imageUrl;

    /**
     * 来源链接
     */
    @NotBlank(message = "来源链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sourceUrl;

    /**
     * 来源平台
     */
    @NotBlank(message = "来源平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sourcePlatform;

    /**
     * 商品描述
     */
    @NotBlank(message = "商品描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 浏览量
     */
    @NotNull(message = "浏览量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long browseCount;

    /**
     * 跳转次数
     */
    @NotNull(message = "跳转次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long clickCount;


}
